home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- #
- # A generic version of the pinglaura script. Takes one argument indicating
- # the name of the user to ping.
-
- echo "Content-type: text/html"
- echo
- echo "<HTML><HEAD>"
- echo "<TITLE>Are You There?</TITLE>"
- echo "</HEAD><BODY>"
-
- ison=`who | grep "${1}"`
-
- if [ ! -z "$ison" ]; then
- echo "<P>$1 is logged in"
- else
- echo "<P>$1 isn't logged in"
- fi
-
- echo "</BODY></HTML>"
-